[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MaxAvail                 Returns Size of Largest Block Available

 MaxAvail : Integer;

    Returns the size of the largest consecutive block of memory available
    for allocation in the heap. The value returned is in paragraphs (16-
    byte chunks).

          Notes:    If the value returned is less than 0, the actual
                    amount of memory is equal to 65536.0 + MaxAvail.

                    In order to get the size in bytes, multiply the value
                    returned by 16.0 and assign this result to a real
                    variable (to avoid overflow).

  -------------------------------- Example ---------------------------------

           var
             Biggest : Real;

           { Compute the largest block available }
           if MaxAvail < 0 then
             Biggest := 16.0 * (65536.0 + MaxAvail)
           else
             Biggest := 16.0 * MaxAvail;

See Also: MemAvail
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson